package com.dengcj.epl.entity.ecology.workflow;

import cn.hutool.db.Entity;
import com.dengcj.epl.enums.ecology.workflow.RequestSrc;

import java.util.List;
import java.util.Map;

/**
 * @author dengchunjie
 * @Description: Ecology工作流请求对象
 * @date 2022/1/12 17:33
 */
public class EcologyRequestInfo {
    private int requestId;

    private String requestLog;

    private int creator;

    private int workflowId;

    private int nodeId;

    private RequestSrc src;

    private String tableName;

    // 最后节点ID
    int lastnodeid;
    // 下一节点ID
    int nextnodeid;
    // 下一节点类型
    String nextnodetype;
    // 请求名称
    String requestname;
    // 当前节点操作者
    int userid;

    // 主表数据
    private Entity mainData;

    // 明细表数据
    private Map<String, List<Entity>> detailData;

    // 接口参数
    private Entity params;

    public int getRequestId() {
        return requestId;
    }

    public void setRequestId(int requestId) {
        this.requestId = requestId;
    }

    public String getRequestLog() {
        return requestLog;
    }

    public void setRequestLog(String requestLog) {
        this.requestLog = requestLog;
    }

    public int getCreator() {
        return creator;
    }

    public void setCreator(int creator) {
        this.creator = creator;
    }

    public int getWorkflowId() {
        return workflowId;
    }

    public void setWorkflowId(int workflowId) {
        this.workflowId = workflowId;
    }

    public int getNodeId() {
        return nodeId;
    }

    public void setNodeId(int nodeId) {
        this.nodeId = nodeId;
    }

    public RequestSrc getSrc() {
        return src;
    }

    public void setSrc(RequestSrc src) {
        this.src = src;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public int getLastnodeid() {
        return lastnodeid;
    }

    public void setLastnodeid(int lastnodeid) {
        this.lastnodeid = lastnodeid;
    }

    public int getNextnodeid() {
        return nextnodeid;
    }

    public void setNextnodeid(int nextnodeid) {
        this.nextnodeid = nextnodeid;
    }

    public String getNextnodetype() {
        return nextnodetype;
    }

    public void setNextnodetype(String nextnodetype) {
        this.nextnodetype = nextnodetype;
    }

    public String getRequestname() {
        return requestname;
    }

    public void setRequestname(String requestname) {
        this.requestname = requestname;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public Entity getMainData() {
        return mainData;
    }

    public void setMainData(Entity mainData) {
        this.mainData = mainData;
    }

    public Map<String, List<Entity>> getDetailData() {
        return detailData;
    }

    public void setDetailData(Map<String, List<Entity>> detailData) {
        this.detailData = detailData;
    }

    public Entity getParams() {
        return params;
    }

    public void setParams(Entity params) {
        this.params = params;
    }
}
